package club.xinghe.provider;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@ImportResource("classpath:dubbo-provider.xml")//加载xml配置信息
@MapperScan("club.xinghe.provider.dao")//扫描mapper的包
public class ProviderApplication {

    public static void main(String[] args) {
        System.out.println("生产者启动成功！");
        SpringApplication.run(ProviderApplication.class, args);
    }

}
